package com.zhao.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>流量测试接口</p>
 * <p>创建时间：2021/02/24/15:16</p>
 *
 * @author ZhangZhao
 * @version 1.0
 */
@Slf4j
@RefreshScope
@RestController
public class SentinelConsumer {
    @Value("${sentinel.config}")
    private String configMsg;
    @GetMapping("/toBush")
    public String toBush(){
        return "configMsg->"+configMsg;
    }
}
